/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ejercicio2;
import java.io.*;
import java.util.Scanner;
/**
 *
 * @author User
 */
public class ejercicio3 {
    public static void main(String[] args) {
        double pares = 1;
        int impares = 1;
        for (int i=20;i<= 80;i++)
        {
            if(i % 2 == 0) 
            {
                pares *= i;
            } 
            else 
            {
                impares += i;
            }
        }
        System.out.printf("Los pares son %e %n",pares);
        System.out.printf("Los impares son %d \n",impares);
    }
}
